package cn.edu.hunau.java.week02.day02.afternoon;

public class Shape {
    private Point position;

    public Shape() {
    }

    public Shape(Point position) {
        this.position = position;
    }

    public Shape(int x,int y) {
        this(new Point(x,y));
    }

    public double area(){
        return -1;
    }

    public boolean container(Point p){
        return false;
    }

    public boolean container(int x,int y){
        return this.container(new Point(x,y));
    }

    public Point getPosition() {
        return position;
    }

    public void setPosition(Point position) {
        this.position = position;
    }
}
